home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-03-26 | 2.7 KB | 73 lines | [TEXT/CWIE] |
- // Copyright © 1995-96 Apple Computer, Inc. All rights reserved.
- // Release Version: $ ODF 1 $
-
- #ifndef FRAME_H
- #define FRAME_H
-
- //=======================================================================
- // ----- Framework Includes -----
- #ifndef FWFRAME_H
- #include <FWFrame.h> // FW_CFrame
- #endif
-
- //=======================================================================
- class CGraphicsBfrPart;
- class CGraphicsBfrPart;
- class FW_CLineShape;
- class FW_CRegionShape;
- class FW_CPolygonShape;
- class FW_CPrintHandler;
- class FW_CBitmap;
-
- //=======================================================================
- class CGraphicsBfrFrame : public FW_CFrame {
- public:
- FW_DECLARE_AUTO(CGraphicsBfrFrame)
- CGraphicsBfrFrame(Environment* ev,
- ODFrame* odFrame,
- FW_CPresentation* presentation,
- CGraphicsBfrPart* graphicsbfrPart);
- virtual ~CGraphicsBfrFrame();
- protected:
- // overrides
- virtual void Draw(Environment *ev,
- ODFacet* odFacet,
- ODShape* invalidShape);
- virtual FW_Boolean DoMouseDown(Environment* ev,
- const FW_CMouseEvent& theMouseEvent);
- virtual void FrameShapeChanged(Environment* ev);
- // overrides printing
- virtual FW_CPrintHandler* NewPrintHandler(Environment* ev);
- virtual FW_Boolean IsCurrentlyPrintable(Environment* ev) const;
- virtual void GetPrintContentExtent(Environment *ev, FW_CPoint& extent) const;
- // new members
- virtual FW_CPictureShape* MyCreatePictureShape(Environment* ev);
- virtual FW_CPolygonShape* MyCreatePolygonShape(Environment* ev);
- virtual FW_CLineShape* MyCreateLineShape(Environment* ev);
- virtual FW_CRegionShape* MyCreateRegionShape(Environment* ev);
- virtual void MyDrawBackground(Environment* ev, FW_CGraphicContext& gc);
- virtual void MyDrawShapes(Environment* ev, FW_CGraphicContext& gc);
- virtual void MyDrawText(Environment* ev, FW_CGraphicContext& gc);
- virtual void MyDrawPictures(Environment* ev, FW_CGraphicContext& gc);
- virtual void MyDrawLine(Environment* ev, FW_CGraphicContext& gc);
- virtual void MyDrawPolygon(Environment* ev, FW_CGraphicContext& gc);
- virtual void MyInvalidateLine(Environment* ev);
- // for offscreen buffer
- virtual void MyDrawAllStuff(Environment* ev, FW_CGraphicContext& gc);
- virtual void MyUpdateBitmap(Environment* ev);
- virtual void MyDrawToBitmap(Environment* ev, ODShape* invalidShape);
- private:
- FW_CPictureShape* fLargePictureShape;
- FW_CLineShape* fLineShape;
- FW_CRegionShape* fRegionShape;
- FW_CPolygonShape* fPolygonShape;
- FW_CRect fLargePictRect;
- FW_CBitmap fBitmap;
- FW_CRect fFrameRect;
- FW_CBitmapShape* fBitmapShape;
- FW_Boolean fDisplayChanged;
- };
-
- //=======================================================================
- #endif
-